﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Contracts;
using NLog;

namespace LoggerService
{
    public class LoggerManager : ILoggerManager
    {
        private static ILogger logger = LogManager.LoadConfiguration(Directory.GetCurrentDirectory() + "/Config/nlog.config").GetCurrentClassLogger(); //LogManager.GetCurrentClassLogger();
        public LoggerManager()
        {
            LogTrace("LoggerManager构造函数");
        }

        public void LogTrace(string message)
        {
            logger.Trace(message);
        }

        public void LogDebug(string message)
        {
            logger.Debug(message);
        }
        public void LogError(string message)
        {
            logger.Error(message);
        }
        public void LogInfo(string message)
        {
            logger.Info(message);
        }
        public void LogWarn(string message)
        {
            logger.Warn(message);
        }

        public void LogCritical(string message)
        {

        }


    }
}
